package cn.iocoder.yudao.module.ent.document.node;

import cn.iocoder.yudao.module.ent.document.BaseNode;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 变更记录 节点
 */

@Document(indexName = "node_change_record")
@Data
public class NodeChangeRecord extends BaseNode {

    //公司数据加密id
    @Field(name = "cid", type = FieldType.Keyword)
    private String cid;

    @Field(name = "create_time", type = FieldType.Text)
    private String createTime;

    @Field(name = "code", type = FieldType.Long)
    private Long code;

    //变更日期
    @Field(name = "date", type = FieldType.Text)
    private String date;

    //变更项目
    @Field(name = "fieldName", type = FieldType.Text)
    private String fieldName;

    //变更后
    @Field(name = "newValue", type = FieldType.Text)
    private String newValue;

    //变更前
    @Field(name = "oldValue", type = FieldType.Text)
    private String oldValue;


}
